import ErrorCodeConstant from "~/constants/error_code";

export default class BaseError extends Error {
    constructor(public stack?: string, public code = ErrorCodeConstant.FAIL) {
        super(stack);
    }
}